﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Type" Object="Type" InnerID="Request.QueryString['TypeID']" />
<section data-page="type_resource_add" data-title="添加资源" data-lang="<%=ContentLang%>" data-type-id="<%=Request.QueryString["TypeID"]%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="../list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">类型列表</a> → <b class="<%=ContentLang%>Font"><%=Type[Name]%></b></dt>
		<dd>
			<select data-ali-widget="combo" data-class="<%=ContentLang%>Font">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="?Lang=<%=ContentLang%>" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="../edit.aspx?ID=<%=Request.QueryString["TypeID"]%>">编辑</a></li>
							<li><a href="list.aspx?TypeID=<%=Request.QueryString["TypeID"]%>" target="ali-navtab">资源列表</a></li>
							<li class="ali-active"><a>添加资源</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>文件夹：</th>
								<td>
									<select name="Folder" data-ali-widget="combo" data-class="<%=ContentLang%>Font">
										<option value="">/</option>
										<ali:List Object="Type.Resource" Operation="ListFolder(Convert.ToInt32(Request.QueryString['TypeID']))">
											<ali:Record>
												<option value="<%=Name%>"><%=Name%></option>
											</ali:Record>
										</ali:List>
									</select>
									<input type="text" name="FolderName" class="ali-input">
									<button type="button" class="ali-button" data-operation="AddFolder">添加文件夹</button>
								</td>
							</tr>
							<tr>
								<th>文件：</th>
								<td>
									<input type="text" name="File" size="55" class="ali-input"><a class="ali-button ali-uploader">浏览...</a>
									<input type="hidden" name="AllowedType" value="gif|jpg|jpeg|png|bmp|swf|eot|ico|mp3|wmv|wma|flv|ra|rm|js|txt|xml">
									<br>文件类型应为gif,jpg,jpeg,png,bmp,eot,ico,swf,mp3,wmv,wma,flv,ra,rm,js,txt,xml
								</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">上 传</button></div>
	</form>
</section>